package com.custom;

import lombok.val;
import org.apache.flink.api.common.eventtime.WatermarkStrategy;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * 测试类
 */
public class Test {
    public static void main(String[] args) throws Exception {
        val env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(4);
        env.fromSource(new MySource(20), WatermarkStrategy.noWatermarks(), "my-source")
                .print();

        env.execute("test");
    }
}
